<%= error_messages_for 'monogram' %>

<!--[form:monogram]-->
<p><label for="monogram_family">Family</label><br/>
<%= collection_select('monogram', 'monogram_family_id', MonogramFamily.find(:all), :id,
:name) %></p>
<p><label for="monogram_binary">Binary</label><br/>
<%= file_field 'monogram', 'upload' %>
</p>



<% for color in Color.find(:all) %>
<div>
  <%= radio_button(:monogram, :color_id, color.id) %>
 <% if color.is_a?(MonoScheme) %>
 <span style="background-color:#<%= color.first %>;"><%= color.first %></span>
 <% else %>
 <span style="background-color:#<%= color.first %>;"><%= color.first %></span><span style="background-color:#<%= color.second %>;"><%= color.second %></span>
 <% end %>
</div>
<% end %>
<!--[eoform:monogram]-->
